草庐IT

找不到 Javac

全部标签

c# - 找不到错误页面,使用自定义错误页面抛出 ELMAH 错误

我对Global.asax进行了一些修改,以便可以显示自定义错误页面(403、404和500)这是代码:publicclassMvcApplication:System.Web.HttpApplication{protectedvoidApplication_Start(){AreaRegistration.RegisterAllAreas();WebApiConfig.Register(GlobalConfiguration.Configuration);//FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);Route

c# - 找不到类型或命名空间名称 "WebRequestHandler"

我正在尝试使用此处列出的Dropbox.API代码:https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples/SimpleTest我将他们的Program.cs复制到我的Program.cs中,而没有对我的解决方案/项目中的其他文件进行其他更改。我得到了Thetypeornamespacename"WebRequestHandler"couldnotbefound.尽管有这个using语句:usingSystem.Net.Http;帮助文本说要添加程序集引用,但我不知道要添

c# - 如果在引用列表中找不到 System.Web,我该如何添加它作为引用?

我正在使用C#.Net4.0开发一个项目。我正在尝试使用HttpUtility.HtmlDecode。为此,我添加了usingSystem.Web;到文件的顶部。但是,找不到对HttpUtility的引用。谷歌搜索了一下后,我发现这个问题的常见答案是添加对System.Web.dll的引用,方法是在解决方案资源管理器中右键单击“引用”并单击“添加”,在显示的列表中找到它引用...”。不幸的是,这不在列表中。我找到了System.Web.Services和System.Web.ApplicationServices,但没有找到System.Web,而且都不包含我们需要的内容。感谢任何帮助

c# - 在 .net 4.0 版本上找不到 System.Web 程序集

我将.NET从3.5更新到4.0版本,但是更新程序集后System.Web不再工作。我收到以下错误:Warning1Couldnotresolveassembly"System.Web".Theassemblyisnotinthecurrentlytargetedframework".NETFramework,Version=v4.0,Profile=Client".Pleaseremovereferencestoassembliesnotinthetargetedframeworkorconsiderretargetingyourproject.使用3.5版本它工作正常。我该如何解决

c# - 在 'object' 上找不到 WPF/XAML 属性

我在一个新的WPF应用程序中使用BackgroundWorker,我需要在它在后台工作时报告进度/更新UI。我在WIndowsForms应用程序中已经这样做了很长时间。我刚刚为WPF重写了这一切,这让我有点头疼。它在运行时不断抛出以下错误:System.Windows.DataError:40:BindingExpressionpatherror:'Sender'propertynotfoundon'object'''Char'(HashCode=5046349)'.BindingExpression:Path=Sender;DataItem='Char'(HashCode=50463

c# - 在 NUnit 参数化测试中找不到合适的构造函数

查看下面的测试夹具:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNUnit.Framework;//////TestsrelatingtoHarryPotter///[TestFixture("Dumbledore")]publicclassHarryPotterTests{publicstringName;publicHarryPotterTests(stringpersonName){Name=personName;}[Test]publicvoidTest()

c# - 找不到 Xamarin.Forms.Platform.Android.LabelRenderer(xamarin 表单)的构造函数

我的xamlonpcl项目中有一个图像列表当我在samsumggalaxys5设备上测试我的应用程序时我这样做:我进入列表的页面,然后我按下操作栏上的后退按钮......我做了很多次......然后,它发生了:System.NotSupportedException:UnabletoactivateinstanceoftypeXamarin.Forms.Platform.Android.Platform+DefaultRendererfromnativehandle0x20e0001d(key_handle0x42433c30).或Unabletoactivateinstanceoft

c# - 为什么 FindSystemTimeZoneById 找不到 GetSystemTimeZones 返回的某些时区?

我遇到了一个似乎无法解决的奇怪问题。当我在我的Win7x64机器上调用TimeZoneInfo.GetSystemTimeZones时,我得到了101个结果。当我对其中的每一个调用TimeZoneInfo.FindSystemTimeZoneById并传递TimeZoneInfo对象的StandardName属性时,其中3个抛出TimeZoneNotFoundException。这是一个示例:vartzs=TimeZoneInfo.GetSystemTimeZones();foreach(vartimeZoneInfointzs.OrderBy(t=>t.BaseUtcOffset))

c# - 在类库中找不到 ConfigurationManager

所以,我有一个类库,我知道它会被网站使用,我需要访问配置设置。我添加了对System.Configuration的引用,但在类库中找不到ConfigurationManager。有几件事,其中一件是当我添加对System.Configuration的引用时,它显示为带有小写字母“c”的“System.configuration”,我认为这很奇怪。另一件事,当我访问System.Configuration时,最接近ConfigurationManager的是“ConfigurationSettings”。我在允许我使用ConfigurationManager和此类库的Web应用程序中查看

c# - ASP.NET Core Entity Framework Core 找不到 IndexAttribute

在执行“dotnetrun”后,我在我的Mac上的IDE和控制台窗口中收到来自VisualStudioCode的以下信息:Thetypeornamespacename'IndexAttribute'couldnotbefound我有一个名为Story的类,我想使用它通过CodeFirst生成数据库。此类有一个标有KeyAttribute的主键和标有MaxLengthAttribute的Author字符串,因此它们都有效(使用System.ComponentModel.DataAnnotations)。另外两个字段DateTimeDate和boolIsPublished应用了IndexA